<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
	<jsp:include page="include/head.jsp">
		<jsp:param value="${ep}" name="ep"/>
	</jsp:include>
	
	<body class="body">
	
	
  <div class="navbar">
   
  </div>
		
		<div class="row">
			<div class="span9 offset3">
	        	<div class="page-header">
	        		<h2>项目列表</h2>
	        	</div>
	        	<a href="project.jspx?m=newProject" class="btn btn-success"><i class="icon-plus icon-white"></i>开始一个新项目</a>
			 	<c:choose>
			  		<c:when test="${fn:length(page.result) == 0 }">
					    <ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
							<li class="active">
								<a href="#">没有任何项目</a>
							</li>
						</ul>
						<div class="wall">
							<p>没有任何项目</p>
						</div>
			  		</c:when>
			  		<c:otherwise>
			  			<c:forEach items="${requestScope.page.result }" var="project" varStatus="v">
				  			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
								<li class="active">
									<a href="project.jspx?id=${project.id}"><i class="icon-th"></i>${project.name}</a>
								</li>
								<li style="float:right;margin-right:5px;">
									<p>创建时间：${project.createtime}</p>
								</li>
							</ul>
							<div class="wall">
								<p>${project.desc}</p>
							</div>
						</c:forEach>
						<jsp:include page="include/pager.jsp">
							<jsp:param value="${page}" name="pager"/>
							<jsp:param value="main.jspx" name="jspx"/>
						</jsp:include>
			  		</c:otherwise>
						</c:choose>
			</div>
			<div class="span3">
			 <a href="employee.jspx" style="margin-lef:40px"><h4>注册新用户</h4></a>
				<div class="well" style="margin-left:30px;witdth:200px;height:200px;"></div>
			</div>
		</div>
	
	</body>
</html>
